<include file="./Application/Home/View/default/public/header.html" title="我的课程"/>
<link rel="stylesheet" href="/Public/home/order/payrecord/payrecord.css">
<div id="teacher-form" class="teacher-form body-margin">
    <div class="container">
        <div class="row">
            <div class="col-md-12 form-body">
                <div class="panel panel-default">
                    <div class="panel-heading text-center">
                        <h3 class="panel-title">您的消费记录</h3>
                    </div>
                    <div class="tab-course">
                         <table class="table table-condensed">
                                <tr>
                                    <td>编号</td>
                                    <td>类型</td>
                                    <td>订单号</td>
                                    <td>消费课时</td>
                                    <td>剩余课时</td>
                                    <td>上课时间</td>
                                    <td>老师反馈</td>
                                    <if condition="($user_type eq 2)">
                                        <td>评价</td>
                                    <else/>

                                    </if>
                                </tr>
                                <foreach name="lists" item="list">
                                    <tr>
                                        <td>{$list.index}</td>
                                        <td>
                                            <if condition="($list.status eq 1)">
                                                消费
                                            <else/>
                                                充值
                                            </if>
                                        </td>
                                        <td>{$list.order_sn}</td>
                                        <td>
                                            <if condition="($list.status eq 1)">
                                                <if condition="($list.coursenum_c neq 0)">
                                                    {$list.coursenum_c}小时
                                                <else/>
                                                    1小时
                                                </if>
                                            <else/>
                                                -
                                            </if>
                                        </td>
                                        <td>{$list.coursenum}小时</td>
                                        <td>
                                            <if condition="($list.status eq 1)">
                                                {$list.eventtime}
                                            <else/>
                                                -
                                            </if>
                                        </td>
                                        <td>
                                            <if condition="($list.status eq 1)">
                                                <a data-content="{$list.remark}" class="remark-detail" data-trigger="hover" data-placement="left">详情</a>
                                            <else/>
                                                -
                                            </if>
                                        </td>
                                        <if condition="($user_type eq 2)">
                                            <td>
                                                <if condition="($list.isComment eq 1)">
                                                    <a href="javascript:;" data-content="<div class=comment-tip><p><span>总评价<em>{$list.comment.total}</em>分</span></p><p><span>知识准确度<em>{$list.comment.accuracy}</em>分</span></p><p><span>内容充实度<em>{$list.comment.enrich}</em>分</span></p><p><span>讲解透彻度<em>{$list.comment.easy}</em>分</span></p><p><span>讲解熟练度<em>{$list.comment.experience}</em>分</span></p><p><span>思维敏锐度<em>{$list.comment.fast}</em>分</span></p><p><span>评论:{$list.comment.remark}</span></p></div>"
                                                     class="comment-detail" data-html=true data-placement="left" data-trigger="hover">已评</a>
                                                    <else/>
                                                    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#commentModal" data-logid="{$list.log_id}" data-teacherid="{$list.user_id}">我要评价</button>
                                                </if>
                                            </td>
                                        </if>
                                    </tr>
                                </foreach>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="commentModal" tabindex="-1" role="dialog" aria-labelledby="commentModal" aria-hidden="true">
        <div class="modal-dialog text-center">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">×</span>
                    </button>
                    <h4 class="modal-title">评价</h4>
                </div>
                <form action="#" id="commentModalForm" method="post">
                    <div class="modal-body">
                        <div class="">
                            <div class="form-group clearfix" data-name="total">
                                <label class="control-label left" for="" style="width: 70px; text-align: left">总评价</label>
                                <span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span>
                            </div>
                            <div class="form-group clearfix" data-name="accuracy">
                                <label class="control-label left" for="">知识准确度</label>
                               <span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span>
                            </div>
                            <div class="form-group clearfix" data-name="enrich">
                                <label class="control-label left" for="">内容充实度</label>
                                <span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span>
                            </div>
                            <div class="form-group clearfix" data-name="easy">
                                <label class="control-label left" for="">讲解透彻度</label>
                                <span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span>
                            </div>
                            <div class="form-group clearfix" data-name="experience">
                                <label class="control-label left" for="">讲解熟练度</label>
                                <span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span>
                            </div>
                            <div class="form-group clearfix" data-name="fast">
                                <label class="control-label left" for="">思维敏锐度</label>
                                <span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span><span class="star-off"></span>
                            </div>
                            <div class="form-group clearfix">
                                <label class="control-label left" for="">评论（意见，建议）</label>
                                <textarea class="form-control login-field  long_remarks" type="text" placeholder="" id="commentRemark" name="reback" rows="3"></textarea>
                            </div>
                            <a href="javascript:;" class="btn bg-green white btn-lg btn-block" id="commentBtn">提交</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
<include file="./Application/Home/View/default/public/footer.html"/>
<script type="text/javascript" src="/Public/home/order/payrecord/payrecord.js"></script>
</body>
</html>
